package com.story.api.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

/**
 * <p>
 * 视频详情表
 * </p>
 *
 * @author yangbo
 * @since 2017-12-14
 */
@TableName("vedio_detail")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VedioDetail extends Model<VedioDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 视频名称
     */
	private String name;
    /**
     * 资源上传者
     */
	private String uploader;
    /**
     * 作者
     */
	private String author;
    /**
     * 时常
     */
	private String duration;
    /**
     * 文件类型
     */
	private String fileType;
    /**
     * 视频资源位置
     */
	private String filePath;
	private String logoPath;
    /**
     * 视频创建时间
     */
	private Date createTime;
    /**
     * 播放量
     */
	private Integer playCount;
    /**
     * 分享量
     */
	private Integer shareCount;
    /**
     * 下载量
     */
	private Integer downloadCount;
    /**
     * 所属类别
     */
	private Integer cateId;
    /**
     * 年龄段标志
     */
	private Integer ageType;
    /**
     * 推荐指数
     */
	private Integer rating;
    /**
     * 集数排序
     */
	private Integer orderNum;

	/**
	 * 推荐排序
	 */
	private Integer recRate;

	/**
	 * 资源类型
	 */
	private Integer resType;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUploader() {
		return uploader;
	}

	public void setUploader(String uploader) {
		this.uploader = uploader;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getPlayCount() {
		return playCount;
	}

	public void setPlayCount(Integer playCount) {
		this.playCount = playCount;
	}

	public Integer getShareCount() {
		return shareCount;
	}

	public void setShareCount(Integer shareCount) {
		this.shareCount = shareCount;
	}

	public Integer getDownloadCount() {
		return downloadCount;
	}

	public void setDownloadCount(Integer downloadCount) {
		this.downloadCount = downloadCount;
	}

	public Integer getCateId() {
		return cateId;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}

	public Integer getAgeType() {
		return ageType;
	}

	public void setAgeType(Integer ageType) {
		this.ageType = ageType;
	}

	public Integer getRating() {
		return rating;
	}

	public void setRating(Integer rating) {
		this.rating = rating;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getRecRate() {
		return recRate;
	}

	public void setRecRate(Integer recRate) {
		this.recRate = recRate;
	}

	public Integer getResType() {
		return resType;
	}

	public void setResType(Integer resType) {
		this.resType = resType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VedioDetail{" +
			"id=" + id +
			", name=" + name +
			", uploader=" + uploader +
			", author=" + author +
			", duration=" + duration +
			", fileType=" + fileType +
			", filePath=" + filePath +
			", logoPath=" + logoPath +
			", createTime=" + createTime +
			", playCount=" + playCount +
			", shareCount=" + shareCount +
			", downloadCount=" + downloadCount +
			", cateId=" + cateId +
			", ageType=" + ageType +
			", rating=" + rating +
			", orderNum=" + orderNum +
			", recRate=" + recRate +
			", resType=" + resType +
			"}";
	}
}
